package com.tengju.bff.interfaces.covercharge.constant;
/**
 * 乐税第三方商户信息返回状态枚举
 *
 * @author cj
 */
public enum LetaxMerchantCodeEnum {
    SUCCESS("00","成功"),
    APPLYING("01","申请中"),
    REGISTERING("02","注册中"),
    CANCEL("03","注销"),
    CHECKING("04","待审核"),
    CENTEAL_REJECT("05","中心企业驳回"),
    OPERATING_REJECT("06","运营端驳回");

    private String code;
    private String desc;

    LetaxMerchantCodeEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return this.code;
    }

    public String getDesc() {
        return this.desc;
    }

    public static String getDesc (String code){
        for(LetaxMerchantCodeEnum letaxMerchantCodeEnum : (LetaxMerchantCodeEnum.values())){
            if(letaxMerchantCodeEnum.getCode().equals(code)){//如果传入的code与此枚举code相同，则返回此枚举
                return letaxMerchantCodeEnum.getDesc();
            }
        }
        return null;
    }
}
